﻿using System;

namespace TskComment.Core
{
    [AttributeUsage(AttributeTargets.Field)]
    public class ValueAttribute : Attribute
    {
        private string _value;

        public string Value
        {
            get
            {
                if (!String.IsNullOrWhiteSpace(_value))
                {
                    return _value;
                }
                else
                {
                    return String.Empty;
                }
            }
            set
            {
                _value = value;
            }
        }


        public ValueAttribute(string value)
        {
            Value = value;
        }
    }
}
